package com.odp.mapper;

import com.odp.entity.Reply;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReplyMapper {
    @Update("update t_reply set likes = likes + 1 where reply_id=#{replyId}")
    public int likeReply(int replyId);

    public int makeReply(Reply reply);


    public List<Reply> getRepliesFromComment(int commentId);//获取一个评论的所有回复
}
